<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<style type="text/css">
	#top{
		position:relative;
		bottom:-100px;
		right:0px;
	}
</style>
<body>
	
	<h1>aljafodisn</h1>
	<h1>aaaaaaaaaaaaaa</h1>
	<h1>aaaaaaaaaaaaaaaaaaaa</h1>
	<h1>aaaaaaaaaaaaaaaaaaaa</h1>
	<h1>aaaaaaaaaaaaaaaaaaaa</h1>
	<h1>aaaaaaaaaaaaa</h1>
	<h1>vvvvvvvvvvvvv</h1>
	<h1>rrrrrrrrrrrrrr</h1>
	<h1>gggggggggggggggg</h1>
	<h1>lllllllllllllllll</h1>
	<h1>aaaaaaaaaa</h1>
	<h1>ffffff</h1>
	<h1>bbbbbbbbbbbbbbbbbbb</h1>
	<h1>tttttttttttt</h1>
	<h1>nnnnnnnnnnnnnnnn</h1>
	<h1>jjjjjjjjjjjjjjjjjjjjj</h1>
	<img src="1.jpg" id="top">
</body>
<script type="text/javascript">
topobj=document.getElementById('top');
function isChrome(){
	nu=nabigator.userAgent;
	if(nu.match(/chrome/i)){
		return true;
	}else{
		return false;
	}

}

if(isChrome()){
	st=document.body.scrollTop;
	if(st>200){
		topobj.style.display='block';

	}else{
		topobj.style.display='none';
	}
}else{
	st=document.documentElement.scrollTop;
	if(st>200){
		topobj.style.display='block';

	}else{
		topobj.style.display='none';
	}
}

topobj.onclick=function(){

	if(isChrome){
		document.body.scrollTop=0;
	}
}else{
	document.documentElement.scrollTop=0;
}


</script>
</html>